package com.boot.web.dao;

import com.boot.web.entity.BuyBlindBox;
import com.boot.base.dao.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 购买盲盒数据层接口
 * @author 【zhouJie】
 * @date 2021-06-04 13:57:46
 */
public interface BuyBlindBoxDao extends BaseDao<BuyBlindBox> {

    BuyBlindBox queryBuyBlindBoxByIds(@Param("modeId") Integer modeId, @Param("numId") Integer numId);

    void deleteByModeId(Integer modeId);

    List<BuyBlindBox> queryBuyBlindBoxByUserId(Integer modeId);
    List<BuyBlindBox> queryBuyBlindBoxByUserId1(Integer modeId);
    List<BuyBlindBox> queryBuyBlindBoxByUserId1_1(Integer modeId); // 用于启动盲盒时
    BuyBlindBox queryBuyBlindBoxByUserId2(@Param("modeId") Integer modeId, @Param("userId") Integer userId); //判断是否购买过进行中的盲盒

    List<BuyBlindBox> queryBuyBlindBoxByModeId(Integer modeId);

}
